package com.taokatao.cardmee.business.carddetail;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.taokatao.cardmee.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 商家分店课程对应界面中 课程信息(ViewPager中)
 */
public class CardFDBaseInfoLayout extends LinearLayout {
    @BindView(R.id.t_content) TextView tContent;
    @BindView(R.id.t_title) TextView tTitle;

    public CardFDBaseInfoLayout(Context context) {
        this(context, null);
    }

    public CardFDBaseInfoLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        ButterKnife.bind(this, (LayoutInflater.from(context).inflate(R.layout.layout_card_fd_base_info, this)));
    }

    public void setData(String title, String content) {
        tTitle.setText(title);
        tContent.setText(content);
    }
}
